const path  = require("path");
console.log("caraco.config.js");

module.exports = {
    webpack:{
        //别名配置
        alias: {
            "@": path.resolve("src"),
            "~":path.resolve("src/components")
        }
    },
    //改变服务器的相关配置
    devServer:{
        port:3000,//服务器的端口号
        proxy: {
            '/apicdf': {
                target: 'http://180.76.99.14:3000',
                changeOrigin: true,
                pathRewrite: { '^/apicdf': '' }
            }
       }
    }
}